%Setting of each VM
v1 = [12 20 33.33/24 12];
v2 = [18 5 66.67/24 18];
v3 = [24 10 266.67/24 24];
%Price setting of each provider
%Reservation price unit
r1 = [0.2 0.3 0.15 0.1];
r2 = [0.2 0.3 0.15 0.1];
r3 = [0.1 0.2 0.1 0.1];
r4 = [0.1 0.2 0.1 0.1];
reservationPriceUnit = [
    [sum(v1.*r1) sum(v2.*r1) sum(v3.*r1)];
    [sum(v1.*r2) sum(v2.*r2) sum(v3.*r2)];
    [sum(v1.*r3) sum(v2.*r3) sum(v3.*r3)];
    [sum(v1.*r4) sum(v2.*r4) sum(v3.*r4)]];
%Utilization price unit
u1 = [0.1 0.2 0.05 0.1];
u2 = [0.1 0.2 0.05 0.1];
u3 = [0.1 0.1 0.05 0.1];
u4 = [0.1 0.1 0.05 0.1];
utilizationPriceUnit = [
    [sum(v1.*u1) sum(v2.*u1) sum(v3.*u1)];
    [sum(v1.*u2) sum(v2.*u2) sum(v3.*u2)];
    [sum(v1.*u3) sum(v2.*u3) sum(v3.*u3)];
    [sum(v1.*u4) sum(v2.*u4) sum(v3.*u4)]];
%Ondemand price unit
o1 = [0.4 0.6 0.25 0.2];
o2 = [0.5 0.7 0.3 0.2];
o3 = [0.5 0.7 0.3 0.2];
o4 = [0.6 0.8 0.35 0.2];
ondemandPriceUnit = [
    [sum(v1.*o1) sum(v2.*o1) sum(v3.*o1)];
    [sum(v1.*o2) sum(v2.*o2) sum(v3.*o2)];
    [sum(v1.*o3) sum(v2.*o3) sum(v3.*o3)];
    [sum(v1.*o4) sum(v2.*o4) sum(v3.*o4)]];
